package com.crm.api.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 工单操作历史实体类
 */
@Data
public class WorkOrderHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 历史记录ID
     */
    private Integer id;

    /**
     * 工单ID
     */
    private Integer workOrderId;

    /**
     * 操作类型
     */
    private String operationType;

    /**
     * 旧值
     */
    private String oldValue;

    /**
     * 新值
     */
    private String newValue;

    /**
     * 操作内容/备注
     */
    private String content;

    /**
     * 操作人ID
     */
    private Integer operatorId;

    /**
     * 操作人姓名
     */
    private String operatorName;

    /**
     * 操作时间
     */
    private Date createdAt;

    // 操作类型常量
    public static final String OPERATION_CREATE = "CREATE";
    public static final String OPERATION_ASSIGN = "ASSIGN";
    public static final String OPERATION_STATUS_CHANGE = "STATUS_CHANGE";
    public static final String OPERATION_ADD_SOLUTION = "ADD_SOLUTION";
    public static final String OPERATION_ADD_FEEDBACK = "ADD_FEEDBACK";
    public static final String OPERATION_UPDATE = "UPDATE";
}